package cn.wolfcode.crm.service;

import cn.wolfcode.crm.domain.Organization;
import cn.wolfcode.crm.query.impl.OrganizationQuery;
import cn.wolfcode.crm.util.PageResult;

import java.util.List;

public interface IOrganizationService {
    void delete(Long id);

    void saveOrUpdate(Organization record);

    Organization get(Long id);


    List<Organization> getAll();


    void changeState(Long id);

    PageResult query(OrganizationQuery qo);

    Organization getByName(String name);
}
